﻿//-----------------------------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------


using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using Microsoft.LibraryManagerDemo.Controls;
using Microsoft.LibraryManagerDemo.Presenters;

namespace Microsoft.LibraryManagerDemo
{
    /// <summary>
    /// Initializes the library application views and presenters.
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            // Pick the default skin as an argument from the command line.
            var skin = e.Args.FirstOrDefault();
            
            // Create the main view.
            var libraryView = new LibraryWindow();

            // Create the main view presenter.
            var libraryPresenter = new LibraryPresenter(libraryView, skin);

            // Display the main view (main window).
            libraryView.Show();

            base.OnStartup(e);
        }
    }
}
